﻿<%@ Page Title="" Language="C#" MasterPageFile="~/back/Site.master" AutoEventWireup="true" CodeFile="AddTestimonials.aspx.cs" Inherits="back_AddTestimonials" ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<script type="text/javascript">
    $(document).ready(function () {
        $('.cleditor').cleditor();

        $('#MainContent_txtNewsContent').bind('keypress', function (event) {
            if (event.keyCode != 8) {
                var regex = new RegExp("^[a-zA-Z0-9]*$");
                var InputValue = String.fromCharCode(!event.keyCode ? event.which : event.keyCode);
                var key = $(this).val();
                key = key + InputValue;
                if (!regex.test(key)) {
                    event.preventDefault();
                    return false;
                }
            }
        });
    });
    </script>
    <div class="page-header">
        <h1>
            Add Testimonial</h1>
    </div>
    <div id="divMessage" runat="server">
    </div>
    <div class="control-group">
        <label class="control-label">
            Added By</label>
        <div class="controls">
            <asp:TextBox ID="txtAddedBy" runat="server" CssClass="input-xlarge"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvMenuTitle" runat="server" CssClass="alert-error"
                ErrorMessage="Please enter Added By" ControlToValidate="txtAddedBy" Display="Dynamic"></asp:RequiredFieldValidator>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            Testimonial</label>
        <div class="controls">
            <textarea class="cleditor" id="txtTestimonial" rows="3" runat="server"></textarea>
        </div>
    </div>
    <div class="form-actions">
        <asp:Button ID="btnSubmit" runat="server" CssClass="btn btn-primary" Text="Submit"
            OnClick="btnSubmit_Click" />
    </div>
</asp:Content>

